// 导入koa
const  koa = require("koa");
//生成应用
const app = new koa();
// const allowpage= ['/','/index','/admin' ,'/doAdmin','/register','doRegister'];
// 导入init目录下的config
let initConfig = require('./init/config')
let filter = require("./filter")
const static = require("koa-static");
const path = require("path");
app.use(static(path.join(__dirname,"public")));
app.use(filter);
initConfig(app);
//设置监听端口
app.listen(8080);
